﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10_匿名委托
{
    public delegate int OtherDel(int intParam);
    internal class Program
    {
        static void Main(string[] args)
        {
            OtherDel otherDel = delegate (int x) { return x + 1; };
            Console.WriteLine(otherDel(1));

            Console.ReadKey();
        }
    }
}
